<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>vue</title>
		<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
		<style>
			.img {
				width: 200px;
				height: 200px;
			}
		</style>
	</head>
	<body>
		<div id="app">
			<div class="content">{{message}}</div>
			<img :src="image" alt="风景" class="img">
			<p>{{city}}</p>
			<p v-html="area"></p>
		</div>

		<script>
			// 原生js
			// let content=document.querySelector('.content');
			// content.innerHTML = 'Hello world!';

			new Vue({
				el: '#app',
				data() {
					return {
						message: 'hello world!',
						image: 'https://img.yituyu.com/gallery/2013/15_MW5eASBE.jpg!w1500',
						city: "南昌",
						area: "东华理工大学"
					}
				}
			})
		</script>
	</body>
</html>
